package com.leiyuan.content.service;

import com.leiyuan.dto.BindTeachplanMediaDto;
import com.leiyuan.dto.SaveTeachplanDto;
import com.leiyuan.dto.TeachplanDto;
import com.leiyuan.po.Teachplan;
import com.leiyuan.po.TeachplanMedia;

import java.util.List;

/**
 * @author leiyuan
 * @version 1.0
 * @description 课程基本信息管理业务接口
 * @date 2023/4/18 18:38
 */
public interface TeachplanService {

    /**
     * @description 查询课程计划树型结构
     * @param courseId  课程id
     * @return List<TeachplanDto>
     * @author leiyuan
     * @date 2023/4/18 18:38
     */
    public List<TeachplanDto> findTeachplanTree(long courseId);

    /**
     * @description 新增课程计划
     * @param teachplanDto 课程计划信息
     * @return void
     * @author leiyuan
     * @date 2023/4/18 20:05
    */
    public void saveTeachplan(SaveTeachplanDto teachplanDto);

    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.leiyuan.po.TeachplanMedia
     * @author leiyuan
    */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * @description 教学计划解除绑定媒资
     * @param teachplanId
     * @param mediaId
     * @return void
     * @author leiyuan
    */
    public void untieMedia(Long teachplanId,String mediaId);

    /**
     * 根据课程计划id查询
     * @param teachplanId 课程计划id
     * @return com.leiyuan.po.Teachplan
     * @author leiyuan
    */
    public Teachplan findTeachplanInfo(Long teachplanId);
}
